<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript" src="<%=basePath %>js/ckeditor/ckeditor.js"></script>
<title>添加企业</title>
<script type="text/javascript">
var comName=$("#comName").val();
function checkName(){
	if(comName==null){
		$("#nameError").val("名称不能为空！");
		}else{
	$.ajax({
          type:'post',
          url:'com_checkName',
          data:{comName:comName},
          dataType:'json',
          success:function(data){
               $("#nameError").val(data[0].msg);
              }
		});
		}
}
function checkEmail(){}
</script>
<style type="text/css">
.tr{
width: 515px;
height: 40px;
}
.td1{
width: 100px;
height: 40px;
float: left;
}
.td2{
width: 200px;
height: 40px;
float: left;
}
.td3{
width: 140px;
height: 40px;
float: left;
}
.span{
color: red;
}

#province{
width: 80px;
height: 25px;
}
#citys{
width: 80px;
height: 25px;
}
#countys{
width: 80px;
height: 25px;
}
#streets{
width: 80px;
height: 25px;
}

</style>
</head>
<body>
<div style="width:550px;height: 380px;margin: 0px auto;background-color: #f0e68c">
<form action="notice_saveNotice" method="post" id="save">
<s:hidden name="notice.noticeId" value="%{notice.noticeId}"></s:hidden>
<div class="tr">
<div class="td1" align="right"><span>公告标题：</span></div>
<div class="td2"><s:textfield name="notice.noticeTitle" required="true"  id="comName"  placeholder="请输入公告标题" value="%{notice.noticeTitle}"></s:textfield></div>
<div class="td3"><span class="span" id="nameError">*</span></div>
</div>
<div class="tr" style="height: 230px;">
<div class="td1" align="right"><span>公告内容:</span></div>
<div class="td2" ><s:textarea  rows="10" cols="30"  name="notice.noticeContent" required="true"  id="comEmail"  placeholder="请输入邮箱" value="%{notice.noticeContent}"></s:textarea></div>
<div class="td3"><span class="span">*</span></div>
</div>
<div class="tr">
<div class="td1" align="right"><span>开始时间：</span></div>
<div class="td2" ><s:textfield name="notice.startDate" required="true"  id="comPhone"  placeholder="" value="%{notice.startDate}" onclick="WdatePicker()"></s:textfield></div>
<div class="td3"><span class="span">*</span></div>
</div>
<div class="tr">
<div class="td1" align="right"><span>结束时间：</span></div>
<div class="td2" ><s:textfield name="notice.endDate" theme="simple" required="true"  id="comPhone"  placeholder="" value="%{notice.endDate}" onclick="WdatePicker()"></s:textfield></div>
<div class="td3"><span class="span">*</span></div>
</div>
</form>
</div>
</body>
</html>